package com.pm2.entity.workCalendar;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicUpdate;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 工作日历维护
 * @author qin
 */
@Entity
@Table(name="db_pm2_workcalendar_year_month")
@DynamicUpdate
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WorkCalendarYearMonth {
	
	// @Fields id : 日历主键
	@Id @Column(name="id")
	@GeneratedValue(strategy=GenerationType.AUTO)
	int id;	 
	
	int pid;					//父id
	
	String text;
	
	@Transient
	List<WorkCalendarYearMonth> children;
	
}
